package cn.enjoy.auto;

import cn.enjoy.auto.spi.Hello;

import java.util.ServiceLoader;

/**
 * @author K
 * @date 2021/6/22 下午3:43
 */
public class Run {
    public static void main(String[] args) {
        ServiceLoader<Hello> serviceLoader = ServiceLoader.load(Hello.class);
        for (Hello hello : serviceLoader) {
            hello.message();
        }
    }
}
